<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Program Maintainance</title>
        <link rel="stylesheet" href="themes/ui-lightness/jquery.ui.all.css">
        <link type="text/css" href="apycommenus/menu.css" rel="stylesheet" />
        <link rel="stylesheet" href="bannerrotator/bannerrotator.css">
        <link rel="stylesheet" href="jquerydatatable/jquery.dataTables.css">
        <style type="text/css" title="currentStyle">
            @import "tablemedia/css/demo_page.css";
            @import "tablemedia/css/demo_table_jui.css";
            @import "../examples_support/themes/smoothness/jquery-ui-1.8.4.custom.css";
        </style>
        <link rel="stylesheet" href="mycss/common.css">

        <script src="jquery-1.7.1.js"></script>
        <script src="ui/jquery.ui.core.js"></script>
        <script src="ui/jquery.ui.widget.js"></script>
        <script src="ui/jquery.ui.tabs.js"></script>
        <script src="ui/jquery.ui.mouse.js"></script>
        <script src="ui/jquery.ui.sortable.js"></script>
        <script src="ui/jquery.ui.button.js"></script>
        <script src="ui/jquery.ui.draggable.js"></script>
        <script src="ui/jquery.ui.position.js"></script>
        <script src="ui/jquery.ui.resizable.js"></script>
        <script src="ui/jquery.ui.dialog.js"></script>
        <script src="ui/jquery.effects.core.js"></script>

        <script src="myscripts/createProgram.js"></script>
        <script src="myscripts/amendProgram.js"></script>

        <script type="text/javascript" src="apycommenus/menu.js"></script>
        <script type="text/javascript" src="bannerrotator/bannerrotator.js"></script>

        <script type="text/javascript" language="javascript" src="tablemedia/js/jquery.dataTables.js"></script>
        <script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
                $('#programList').dataTable( {
                    "sScrollY": 200,
                    "bJQueryUI": true,
                    "sPaginationType": "full_numbers",
                    "aoColumns": [
                        {  "sSelect": "Select",
                            "bSearchable": false,
                            "bSortable": false,
                        },
                        { "sName": "PROGRAM_NAME" },
                        { "sName": "DESCRIPTION" },
                        { "sName": "CONTACT" },
                        { "sName": "ISACTIVE" }
                    ]
                } );
            } );
        </script>
        <script>
            $(function() {
                $( "#sortable" ).sortable({
                    placeholder: "ui-state-highlight"
                });
                $( "#sortable" ).disableSelection();
            });
        </script>

        <script>
            $(function() {
                $( "#tabs" ).tabs();
            });
        </script>
        <script>
            $(document).ready(function(){
                $("body div:last").remove();
            });
        </script>
        <script>
            $(function() {
                $( "button", "#rightcontrols" ).button();
                $( "button", "#rightcontrols" ).click(function() { return false; });
            });
        </script>

    </head>
    <body>
        <div id="container">
            <div id="header">
                <div class="rotator">
                    <ul>
                        <li class="show"><a href="#link1"><img src="bannerrotator/images/image-2.jpg" width="1012" height="200"  alt="pic1" /></a></li>
                        <li><a href="#link3"><img src="bannerrotator/images/image-3.jpg" width="1012" height="200"  alt="pic3" /></a></li>
                        <li><a href="#link4"><img src="bannerrotator/images/image-4.jpg" width="1012" height="200"  alt="pic4" /></a></li>
                        <li><a href="#link4"><img src="bannerrotator/images/image-5.jpg" width="1012" height="200"  alt="pic4" /></a></li>
                        <li><a href="#link4"><img src="bannerrotator/images/image-6.jpg" width="1012" height="200"  alt="pic4" /></a></li>
                    </ul>
                </div>
            </div>
            <div id="menu">
                <ul class="menu">
                    <li><a href="#" class="parent"><span>Organisations</span></a></li>
                    <li>
                        <a href="#" class="parent"><span>Services</span></a>
                        <ul>
                            <li><a href="#"><span>Service Maintainance</span></a></li>
                            <li><a href="programList.html"><span>Program Maintainance</span></a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="parent"><span>Geography</span></a>
                        <ul>
                            <li><a href="goverment_office_region_list.html"><span>Goverment Office Region</span></a></li>
                        </ul>
                    </li>
                    <li><a href="#" class="parent"><span>Premises</span></a></li>
                </ul>
                <div id="welcomepanel">
                    <a href="#">Welcome: project manager | </a><a href="login.html">Log out</a>
                </div>
            </div>
            <div id="content">
                <div id="maincontent">
                    <div id="maincontentheader">
                        Program Maintainance
                    </div>
                    <div id="tabs">
                        <div class="ui-tabs-panel">
                            <div id="tablecontrols">
                                <span id="leftcontrols">
                                    <a href="#">All</a>
                                    <a href="#">|</a>
                                    <a href="#">A B C D E</a>
                                    <a href="#">|</a>
                                    <a href="#">F G H I J</a>
                                    <a href="#">|</a>
                                    <a href="#">K L M N</a>
                                    <a href="#">|</a>
                                    <a href="#">O P Q R</a>
                                    <a href="#">|</a>
                                    <a href="#">S T U V</a>
                                    <a href="#">|</a>
                                    <a href="#">W X Y Z</a>
                                </span>
                                <span id="rightcontrols">
                                    <button id="create-program">Create</button>
                                    <input type="checkbox"/><span>Include inactive</span>
                                </span>
                            </div>
                            <div>
                                <table cellpadding="0" cellspacing="0" border="0" class="display" id="programList">
                                    <thead>
                                        <tr>
                                            <th width="4%"></th>
                                            <th>Program Name</th>
                                            <th>Description</th>
                                            <th>Contact</th>
                                            <th width="12%" class="center">Is Active</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr onDblClick="amendProgram()">
                                            <td><input type="radio" name="program"/> </td>
                                            <td>ABC</td>
                                            <td>DEF</td>
                                            <td>FPT Cau Giay</td>
                                            <td class="center">Yes</td>
                                        </tr>
                                        <tr onDblClick="amendProgram()">
                                            <td><input type="radio" name="program"/> </td>
                                            <td>ABC</td>
                                            <td>DEF</td>
                                            <td>FPT Cau Giay</td>
                                            <td class="center">Yes</td>
                                        </tr>
                                        <tr onDblClick="amendProgram()">
                                            <td><input type="radio" name="program"/> </td>
                                            <td>ABC</td>
                                            <td>DEF</td>
                                            <td>FPT Cau Giay</td>
                                            <td class="center">Yes</td>
                                        </tr>
                                        <tr onDblClick="amendProgram()">
                                            <td><input type="radio" name="program"/> </td>
                                            <td>ABC</td>
                                            <td>DEF</td>
                                            <td>FPT Cau Giay</td>
                                            <td class="center">Yes</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div align="center">
                                <input type="button" name="btnCreate" value="Create" align="middle"/>
                                <input type="button" name="btnUpdate" value="Update" align="middle"/>
                                <input type="button" name="btnDelete" value="Delete" align="middle"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="create-dialog-form" title="Create new program">
                <form>
                    <table>
                        <tr>
                            <td>Program Name</td>
                            <td><input type="text" name="name" id="name" style="width:200px" class="text ui-widget-content ui-corner-all" /></td>
                        </tr>
                        <tr>
                            <td>Description</td>
                            <td><textarea name="description" id="description" style="width:200px"></textarea></td>
                        </tr>
                        <tr>
                            <td>Contact</td>
                            <td>
                                <input type="text" name="contact" id="contact" style="width:200px" class="text ui-widget-content ui-corner-all" />
                                <a href="" style="color:#0066FF">Lookup</a>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            <div id="amend-dialog-form" title="Amend program">
                <form>
                    <table>
                        <tr>
                            <td>Program Name</td>
                            <td><input type="text" name="aname" id="aname" style="width:200px" class="text ui-widget-content ui-corner-all" /></td>
                        </tr>
                        <tr>
                            <td>Description</td>
                            <td><textarea name="adescription" id="adescription" style="width:200px"></textarea></td>
                        </tr>
                        <tr>
                            <td>Contact</td>
                            <td>
                                <input type="text" name="acontact" id="acontact" style="width:200px" class="text ui-widget-content ui-corner-all" />
                                <a href="" style="color:#0066FF">Lookup</a>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            <div id="footer">
                <div style="width: 80%; margin:25px auto; text-align: center;
                     font-weight: bold; color: #F6AE38;">
                    Fresher 10 - mock project - bad team designed
                </div>
            </div>
        </div>
    </body>
</html>

